namespace Tomahawk.Runtime.Input.Pattern
{
    public struct PGamePadButtons
	{
        public PButtonState A;
        public PButtonState B;
        public PButtonState Back;
        public PButtonState LeftShoulder;
        public PButtonState LeftStick;
        public PButtonState RightShoulder;
        public PButtonState RightStick;
        public PButtonState Start;
        public PButtonState X;
        public PButtonState Y;

        public override int GetHashCode()
        {
            return A.GetHashCode() ^ B.GetHashCode() ^ 
                Back.GetHashCode() ^ LeftShoulder.GetHashCode() ^ 
                LeftStick.GetHashCode() ^ RightShoulder.GetHashCode() ^ 
                RightStick.GetHashCode() ^ Start.GetHashCode() ^
                X.GetHashCode() ^ Y.GetHashCode();
        }
	}
}
